import request from '@/utils/request';

//分页查询请假单信息列表
export function listHistory(data) {
    return request({
        url: '/process/general/listHistory',
        method: 'get',
        params: data
    })
}

//查看审批流程
export function showProcessImg(pProcessInstanceId) {
    return process.env.VUE_APP_BASE_API + "/process/general/readResource?pProcessInstanceId=" + pProcessInstanceId;
}

// 查看流程图，通过流程定义id
export function showProcessImgByPDId(processDefinitionId) {
    return process.env.VUE_APP_BASE_API + "/process/general/readDefinitionImg?processDefinitionId=" + processDefinitionId;
}

//查询当前节点的连线信息，获取审批类型
export function getApprovalType(data) {
    return request({
        url: '/process/general/getApprovalType',
        method: 'get',
        params: data
    })
}
